<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>视频日记</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<script type="text/javascript" src="../js/customize.js"></script>
        <link rel="stylesheet" type="text/css" href="../css/customize.css">
        <script type="text/javascript" src="<%=basePath%>jquery-easyui-1.3.5/jquery.min.js"></script>
<%--         <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script> --%>
		<script type="text/javascript" src="<%=basePath%>js/jwplayer.js"></script>

<style type="text/css">
<!--

.rightcase{
	width:70%;
	min-height:600px;
	padding:1%;
	background-color:#ffffff;
	margin:5% auto;
	border:1px solid #d9d9d9;
	box-shadow:0 1px 0,0 5px 5px rgba(0,0,0,0.7);
	border-radius:6px 6px 6px 6px;
}
.title{
	height:5%;
	padding-top:2%;
	text-align:center;
	font-size:16pt;
	font-family:微软雅黑;
	color:#000000;
	font-weight:normal;
}

.upload{
	width:120px;
	height:35px;
	line-height:35px;
	text-align:center;
	font-size:14pt;
	background-color:#f5f5f5;
}

.category{
	width:120px;
	height:35px;
	line-height:35px;
	margin-top:15px;
	margin-left:26px;
	color:#ffffff;
	background-color:#06a7e1;
	text-align:center;
	font-size:14pt;
}

.myVideo{
	padding:2%;
	
}

.videorow{
	width:200px;
	height:160px;
	margin:0 auto;
	background-color:#f5f5f5;
	
	
}


.videoPic{
	width:200px;
	height:110px;
	cursor:pointer;
}

 div#upload a:link {color:#000000;text-decoration:none;font-size:14pt;} /* 未访问的链接 */
 div#upload a:visited {color:#000000;text-decoration:none;font-size:14pt;} /* 已访问的链接 */
 div#upload a:hover {color:#ffffff;font-size:14pt;} /* 鼠标移动到链接上 */
 div#upload a:active {color: #ffffff;font-size:14pt;} /* 选定的链接 */

 div.videorow a:link {color:#575757;text-decoration:none;font-size:11pt;} /* 未访问的链接 */
 div.videorow a:visited {color:#575757;text-decoration:none;font-size:11pt;} /* 已访问的链接 */
 div.videorow a:hover {color:#cc3311;font-size:11pt;} /* 鼠标移动到链接上 */
 div.videorow a:active {color: #575757;font-size:11pt;} /* 选定的链接 */

body{
	background-image:url('<%=basePath%>images/background4.jpg');
	background-repeat:no-repeat;
}
-->
</style>



</head>
<body>
      <jsp:include page="../head.jsp"></jsp:include>
      
    <div class="rightcase">
    	<div class="title">视频中心</div>
	 	<hr size="3px" color="#F2DAB5">


	<div class="category">医院视频</div>
	<table border="0px" cellpadding="10%">
			
		<s:iterator id="medialist" value="hosmedialist" status="status">
		<s:if test="#status.index % 4 == 0">
		<tr>
		</s:if>
		<td  width="230px">
			<div class="videorow">
			<div><img class="videoPic" src="<s:property value="#medialist.picture" />"
			onclick="window.location.href='<%=basePath%>Media_playVideoAction?videoid=<s:property value="#medialist.id" />&userid=${temploginbean.userId}'"></div>
			<div style="margin:10px"><a href="<%=basePath%>Media_playVideoAction?videoid=<s:property value="#medialist.id" />&userid=${temploginbean.userId}"><s:property value="#medialist.title" /></a></div>
			</div>
		</td>	
		<s:if test="#status.index % 4 == 3 || #status.last">
		</tr>
		</s:if>	
		
		</s:iterator> 
	</table>
	
	<div class="category">我的视频</div>
	<table border="0px" cellpadding="10%">
			
		<s:iterator id="medialist" value="medialist" status="status">
		<s:if test="#status.index % 4 == 0">
		<tr>
		</s:if>
		<td width="230px">
			<div class="videorow">
			<div><img class="videoPic" src="<s:property value="#medialist.picture" />" 
			onclick="window.location.href='<%=basePath%>Media_playVideoAction?videoid=<s:property value="#medialist.id" />&userid=${temploginbean.userId}'"></div>
			<div style="margin:10px"><a href="<%=basePath%>Media_playVideoAction?videoid=<s:property value="#medialist.id" />&userid=${temploginbean.userId}"><s:property value="#medialist.title" /></a></div>
			</div>
		</td>
		<s:if test="#status.index % 4 == 3 || #status.last">
		</tr>
		</s:if>	
		
		</s:iterator> 
	</table>
	<br>
	<div id="upload" class="upload" onMouseover="this.style.backgroundColor='#06a7e1';" onMouseout="this.style.backgroundColor='#f5f5f5';">
		<a href="<%=basePath%>baseJSP/media/UploadVideo.jsp">上传视频</a>
	</div>
	<br>
	<div><a href="<%=basePath%>Media_transcodingVideoAction">视频转码</a></div>
	</div>
	<br>
	
	
  </div>  
    <%@ include file="../foot.jsp"%>
  </div>

</body>
</html>